package com.paas.form.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.paas.form.entity.FormDefinitionEntity;
import com.paas.common.web.service.IBaseService;
import com.paas.form.vo.FormViewVo;

import java.util.List;


public interface IFormDefinitionService extends IBaseService<FormDefinitionEntity>{

    /**
     * 表单详情页面
     * @param formId
     * @return
     */
    FormViewVo getFormDetailById(String formId);

    /**
     * 视图列表分页查询
     * @param formDefinitionEntity
     * @param currentPage
     * @param pageSize
     * @return
     */
    IPage<FormDefinitionEntity> getFormViewPage(FormDefinitionEntity formDefinitionEntity, int currentPage, int pageSize);

    void updateFormStatus(String formId, String publishApprovalStatus);

    //检查视图是否发布过表单
    boolean isExistsForm(String viewId, List<String> bizStatus);
    
}